package design.patterns.factorymode.factoryabstract.computer1;

/**
 * desc     :
 * dateTime : 2020/7/21 9:08
 *
 * @author cww
 */

public class PcComputer extends AbstractComputerFactory {
    private static class SinglePc {
        private static PcComputer pcComputer = new PcComputer();
    }

    public PcComputer() {
    }
    public PcComputer getInstance() {
        return SinglePc.pcComputer;
    }

    public Cpu getCpu(){
        return new PcCpu();
    }
    public Ram getRam(){
        return new PcRam();
    }
}
